package com.gf.pokemon.remote.oa;

public class Encryption {
	public String Encode(String EncodeStr) {
		char[] chars = EncodeStr.toCharArray();
		EncodeStr = "";
		for (int i = 0; i < chars.length; ++i) {
			EncodeStr = EncodeStr + (char) (chars[i] + '\1');
		}
		return EncodeStr;
	}

	public String Decode(String DecodeStr) {
		char[] chars = DecodeStr.toCharArray();
		DecodeStr = "";
		for (int i = 0; i < chars.length; ++i) {
			DecodeStr = DecodeStr + (char) (chars[i] - '\1');
		}
		return DecodeStr;
	}
}
